﻿using System;
using MaLu.Common;
using MaLu.BusiLogic;
using System.Data;

namespace MaluJg.web.FarmerShare
{
    public partial class Index : FarmerPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindData();
            }
        }
        private void BindData()
        {


            DataSet dt = BLFarmerShare.FaGetFarmerShareCollection(Provider, Year);
            rptList.DataSource = dt.Tables[0];
            rptList.DataBind();
            DataRow sum = dt.Tables[1].Rows[0];
            sum1.Text = sum["sum1"].ToString();
            sum2.Text = sum["sum2"].ToString();
            sum3.Text = sum["sum3"].ToString();
            sum4.Text = sum["sum4"].ToString();
            sum5.Text = sum["sum5"].ToString();
            sum6.Text = sum["sum6"].ToString();
        }
    }
}
